const db = require("./db");

const MoneylistSchema = new db.mongoose.Schema({
  username: String,
  title: String,

  price: Number,

  date: String,

  category: [
    {
      incomeoutcome: {
          type:String
      },
      type: {
          type:String
      }
    },
  ]
});

module.exports = db.mongoose.model("Moneylist1", MoneylistSchema);
